package cn.rulian.base.common.vo;

import java.util.List;
import java.util.Map;

/** 
 * Description: EasyUI tree VO
 */

public class TreeVo {
	
	private Long id;

	private String text; //显示文本
	
	private String iconCls; //图标
	
	private List<TreeVo> children; //子节点集合
	
	private String state; //节点状态，'open' 或 'closed'，默认：'open'。如果为'closed'的时候，将不自动展开该节点。
	
	private boolean checked; //表示该节点是否被选中。
	
	private Map<String,Object> attributes; //被添加到节点的自定义属性。
	
	private Long _parentId; //父ID，中转属性，数据转换中使用，非页面显示所需要。

	public Long getId()
	{
		return id;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public String getText()
	{
		return text;
	}

	public void setText(String text)
	{
		this.text = text;
	}

	public String getIconCls()
	{
		return iconCls;
	}

	public void setIconCls(String iconCls)
	{
		this.iconCls = iconCls;
	}

	public List<TreeVo> getChildren()
	{
		return children;
	}

	public void setChildren(List<TreeVo> children)
	{
		this.children = children;
	}

	public String getState()
	{
		return state;
	}

	public void setState(String state)
	{
		this.state = state;
	}

	public boolean isChecked()
	{
		return checked;
	}

	public void setChecked(boolean checked)
	{
		this.checked = checked;
	}

	public Map<String, Object> getAttributes()
	{
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes)
	{
		this.attributes = attributes;
	}

	public Long get_parentId()
	{
		return _parentId;
	}

	public void set_parentId(Long _parentId)
	{
		this._parentId = _parentId;
	}
	
}